<?php

	//release mode
	//include 'woxcore/wc_Core.php';
	//woxcore dev mode
	include 'woxcore/wcCore.php';
	
	$ctrl = new wcController('index','html');
	
	switch( $ctrl->Action )
	{
		case 'phpinfo':
			phpinfo();
			die();
			
		    break;
	
		case 'osinfo':
			$info  = wcCore::getPlatform();
			var_dump($info);
			
			die;
		    
		case 'alternate':
			$ctrl->Template='alternate';
			break;
			
		
		default:
			$info 					= wcCore::getPlatform();
			$ctrl->Data['PLATFORM']	= $info['device'];
			$ctrl->Data['BROWSER']	= $info['browser_name'];
			break;
	}
	
	$ctrl->render();

?>